package net.sx.minemodule.mvp.activities;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.base.MyBaseFragmentActivity;
import com.kedll.library.mvp.BasePresenter;

import net.sx.minemodule.R;
import net.sx.minemodule.databinding.MineActivityMineAccountSafetyBinding;

/**
 * 账户安全
 *
 * @author 11470
 */
@Route(path = ARouterPath.PATH_MINE_ACCOUNT_SAFETY)
public class MineAccountSafetyActivity extends MyBaseFragmentActivity<MineActivityMineAccountSafetyBinding, BasePresenter> {


    @Override
    protected int getLayout() {
        return R.layout.mine_activity_mine_account_safety;
    }

    @Override
    protected void initEvent() {
        //登录密码
        mBinding.entryLoginPasswordSafety.setOnClickListener(v -> {
            ARouter.getInstance().build(ARouterPath.PATH_MINE_UPDATE_LOGIN_PASSWORD).navigation();
        });

        //支付密码
        mBinding.entryPayPasswordSafety.setOnClickListener(v -> {
            ARouter.getInstance().build(ARouterPath.PATH_MINE_UPDATE_PAY_PASSWORD).navigation();
        });
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        mBinding.entryLoginPasswordSafety.setLeftTextAndRightImage("登录密码",true);
        mBinding.entryPayPasswordSafety.setLeftTextAndRightImage("支付密码",true);
    }

    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        setTitle("账户安全");
    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }
}
